package com.deer.wms.inventory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.deer.wms.inventory.model.Inventory.Inventory;
import com.deer.wms.inventory.model.Inventory.InventoryTransact;
import com.deer.wms.inventory.model.Inventory.InventoryTransactCriteria;
import com.deer.wms.inventory.model.Inventory.InventoryTransactDto;
import com.deer.wms.project.root.service.SuperService;
import com.deer.wms.project.root.service.SuperServiceImpl;

import java.util.List;
import java.util.Map;


/**
 *
 * @author wei
 * @since  2019/12/18
 */
public interface InventoryTransactService extends SuperService<InventoryTransact> {

    /**
     * 根据条件查询
     * @param criteria 查询条件
     * @return List<InventoryTransactDto>
     */
    List<InventoryTransactDto> findList(InventoryTransactCriteria criteria);

    /**
     * 事务提交，修改库存
     * @param inventoryTransact 库存事务
     * @return int
     */
    int run(InventoryTransact inventoryTransact);

}
